Skip to content

Improve widgets alignment and size#8

Open
peransin-obeo wants to merge 3 commits into
eclipse-eef:masterfrom
peransin-obeo:dev/widget_align
Open

Improve widgets alignment and size#8
peransin-obeo wants to merge 3 commits into
eclipse-eef:masterfrom
peransin-obeo:dev/widget_align

Conversation

@peransin-obeo

Copy link
Copy Markdown
Contributor

How to test

  • Create a model project with Sirius VSM and semantic Ecore from following archive:
    test_resources.zip
  • Select an EClass and show Properties.
  • Verify the outlook of widget are uniform like in following screen shots.

Screen shot 1 Before patch
Image

Screen shot 1 After patch
image

Screen shot 2 Before patch
Image

Screen shot 2 After patch
image

Not editable widget must not be disabled.
Disable widget cannot be scrolled.
User should be able to read and copy the content.
Actions must still be driven by "is Enabled Expression".

eclipse-eef#3
Change-Id: I46b47a1ade5b3472191e619f07aa1c4db93adaa9
Signed-off-by: Nicolas Peransin <nicolas.peransin@obeo.fr>
Change-Id: I1b5a60b1307a09c91264a84bd78b5bd107526639
Remove extra borders.
Align contents and action buttons.
Same height for lists and multi references.

Change-Id: Icecbef22336aeaf1817e82cff6fd8bafb8888b9a

@lredor lredor left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • The new behavior seems OK.
  • Understanding what the numbers on the screenshots correspond to is not necessarily simple.
  • The shift of some help tooltip seems strange. But after analysis, this is OK. It corresponds to fields that are in a container, so only the "labels/tooltips" of this container are "aligned".

* Minimal height of the table widget. 5 Action buttons and almost 7 lines.
*/
private static final int TABLE_MINIMAL_HEIGHT = 150;
private static final int TABLE_MINIMAL_HEIGHT = 140; // same as AbstractEEFWidgetLifecycleManager

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see what AbstractEEFWidgetLifecycleManager refers to. Perhaps you meant EEFListLifecycleManager?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, but I don't see "140" in AbstractEEFWidgetLifecycleManager.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants